#!/bin/sh

PROJECTS="fgs-client fgs-proxy"

compile() {
	for proj in $PROJECTS; do
		echo "=> Compile $proj"
		cd $proj
		make
		cd ..
	done
}

clean() {
	for proj in $PROJECTS; do
		echo "=> Cleaning $proj"
		cd $proj
		make clean
		cd ..
	done
}

case "$1" in
	clean|-c)
		clean
		;;
	
	*)
		compile
		;;
esac
